package com.kjsb.service.impl;

import com.kjsb.dao.ProjectManageDao;
import com.kjsb.service.ProjectManageService;
import com.kjsb.vo.ProjectManage;
import com.kjsb.vo.ProjectSearch;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ProjectManageServiceImpl implements ProjectManageService {
    @Autowired
    private ProjectManageDao dao;
    /**
     * 根据pid查询项目信息
     */
    @Override
    public ProjectManage getByPid(Integer pid) {
        return  dao.getByPid(pid);
    }

    /**
     * 修改项目信息
     */
    @Override
    public int updateProject(ProjectManage projectManage) {
        return dao.updateProject(projectManage);

    }
    /**
     * 简单查询
     * @return
     */
    @Override
    public List<ProjectSearch> simpleSearch(String name) {
        return dao.simpleSearch(name);
    }

    @Override
    public List<ProjectManage> getByCid(Integer cid) {
        return dao.getByCid(cid);
    }

    @Override
    public int addProject(ProjectManage projectManage) {
        return dao.addProject(projectManage);
    }

    @Override
    public List<ProjectSearch> highSearch(ProjectSearch highSearch) {
        return dao.highSearch(highSearch);
    }

}
